package com.quiz.bis.service;

import com.quiz.common.mybatis.core.page.PageQuery;
import com.quiz.bis.domain.vo.StudentActivityVo;
import com.quiz.bis.domain.vo.StudentExamDetailVo;
import com.quiz.common.mybatis.core.page.TableDataInfo;

/**
 * 学生考试活动服务接口
 */
public interface IStudentActivityService {
    /**
     * 分页查询学生考试活动列表
     */
    TableDataInfo<StudentActivityVo> pageActivityList(Long groupId, Integer type, Integer status, String searchKey, PageQuery pageQuery);

    /**
     * 获取活动详情
     */
    StudentActivityVo getActivityDetail(Long activityId);

    /**
     * 获取考试详情(包含试卷和题目信息)
     */
    StudentExamDetailVo getExamDetail(Long examId);

    /**
     * 保存考试作答草稿
     */
    boolean saveExamDraft(Long examId, String answersJson);

    /**
     * 提交考试
     */
    boolean submitExam(Long examId, String answersJson);
}